package AICore;

public class CPUVars {
	private static CPUVars cpuVars = new CPUVars();
	private static int CPUThinkMode = 0;
	public static int jokerstops = 0;
	private CPUVars() {
		
	}
	
	public static void setCPUThinkMode(int mode) {
		CPUThinkMode=mode;
	}
	
	public static int getThinkTime() {
		switch(CPUThinkMode) {
		case 0: //rapid
			return 0;
		case 1: //fast
			return 500;
		case 2: //normal
			return 1000;
		case 3: //slow
			return 1500;
		case 4: // very slow
			return 2000;
		default: //normal
			return 1000;
		}
	}
	
	public static CPUVars getInstance() {
		return cpuVars;
	}
}
